<template>
  <div class="tr">
        <div class="td"><input type="checkbox" :checked="checkedAll" @change="change" /> 全选</div>
        <div class="td">商品名称</div>
        <div class="td">商品价格</div>
        <div class="td">商品数量</div>
        <div class="td">小计</div>
        <div class="td">操作</div>
      </div>
</template>

<script>
export default {
    props:["checkedAll"],
    methods:{
        change(e){
           this.$emit("setCheckedAll",e.target.checked);

        }
    }

}
</script>

<style>

</style>